package com.qf.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.pojo
 * @Description:
 * @Date 2022/7/1 17:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {

    //json转换的时候忽略这个id
     @JsonIgnore
    private  String id;
     //姓名
     private  String name;
      //年龄
     private  Integer age;
      //出生日期，日期格式必须初始化
    @JsonFormat(pattern = "yyyy-MM-dd")
     private  Date birthday;
}
